package com.lagou.codeservice.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zhangxuyuan
 * @version 1.0
 * @date 2021/1/14
 */
@FeignClient("email-service")
public interface RemoteEmailService {

    @GetMapping("/email/{email}/{code}")
    public Boolean email(@PathVariable("email")String email,@PathVariable("code")String code);
}
